<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let arr = [11, 12, 13]
        let [a, b, c] = arr
        console.log(a, b, c, d = 20)//11 12 13 20
        let person = {
            name: '张三',
            age: 18,
        }
        let { name, age } = person
        console.log(name, age)//张三 18

        function add([x,y]){
            console.log(x,y)
        }
        add(arr)//11,12
    </script>
</head>

<body>

</body>

</html>